import React from 'react'

import Home from '../pages/Home'

const routes = [
  {
    path: '/video',
    component: React.lazy(() => import('../pages/Video')),
    meta: {
      title: '电影'
    }
  },
  {
    path: '/icon',
    component: React.lazy(() => import('../pages/Icon')),
    meta: {
      title: '图标'
    }
  },
  {
    path: '/music',
    component: React.lazy(() => import('../pages/Music')),
    meta: {
      title: '音乐'
    }
  },
  {
    path: '/photo',
    component: React.lazy(() => import('../pages/Photo')),
    meta: {
      title: '相片'
    }
  },
  {
    path: '/',
    // component: React.lazy(() => import('../pages/Home')),
    // component: React.lazy(() => import('../pages/back/Home')),
    component: Home,
    meta: {
      title: '电视+'
    }
  },
  {
    path: '/404',
    component: React.lazy(() => import('../component/NotFound.jsx')),
    meta: {
      title: '404页面未找到!'
    }
  },
]

export default routes